<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>收费项目管理</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
</head>
<body>
  <table class="tableline" cellspacing="1" cellpadding="0" width="100%" border="0">
    <html:form action="chargeItem.do?method=save" method="post" onsubmit="return checkForm();">
    <tr>
      <td class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">添加收费项目</td>
    </tr>
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">收费项目编号:</td>
      <td width="773" bgcolor="#ffffff"><label for="textfield"></label>
        &nbsp;<html:text property="itemId" />
        <font color="red">${chargeItemIdError }${chargeItemIdRequest }</font></td>
    </tr>
    <tr>
      <td height="26" align="right" bgcolor="#ffffff">收费项目名称:</td>
      <td bgcolor="#ffffff"><label for="textfield2"></label>
       &nbsp;<html:text property="name" />
       &nbsp;<font color="red">${chargeItemNameError }</font></td>
    </tr>
    <tr>
      <td height="26" align="right" bgcolor="#ffffff">收费单位:</td>
      <td bgcolor="#ffffff">
      &nbsp;<html:select property="chargeUnitId" style="width:155px;">
      			<html:option value="0">请选择</html:option>
      			<c:if test="${!empty cuList}">
					<c:forEach items="${cuList}" var="unit">
						<html:option value="${unit.id}">${unit.name}</html:option>
					</c:forEach>
				</c:if>
      		</html:select><font color="red">${chargeItemUnitError }</font>
      </td>
    </tr>
    <tr>
      <td height="26" align="right" bgcolor="#ffffff">收费方式:</td>
      <td bgcolor="#ffffff">
      &nbsp;<html:select property="chargeWayId" style="width:155px;">
      			<html:option value="0">请选择</html:option>
      			<c:if test="${!empty cwList}">
					<c:forEach items="${cwList}" var="way">
						<html:option value="${way.id}">${way.name}</html:option>
					</c:forEach>
				</c:if>      			
      		</html:select><font color="red">${chargeItemWayError }</font>
    </tr>
    <tr>
      <td height="26" align="right" bgcolor="#ffffff">备注:</td>
      <td bgcolor="#ffffff">
      &nbsp;<html:textarea property="remark"  style="width:153px;height:100px;margin-top:4px;"/><font color="red">${chargeItemRemarkError }</font>
      &nbsp;<html:submit value="增加收费项目"/>
    </tr>            
    </html:form>
  </table>
</body>
</html>